<?php // Buzzer related php scource require_once( "/home/www/wwwbuzzerstar/library/Image.inc.php"); $img = new Image; $imageUri = trim($_REQUEST['image']); $head = $img->checkHeader($imageUri); //echo "ext=$ext und head=$head<br />"; if ( $head == 1 ){ file_put_contents('/tmp/checkPicture.log', "$imageUri:true\n", FILE_APPEND | LOCK_EX); echo "true"; exit(0); } $ext = $img->checkExtension($imageUri); if ( $ext == 1 ) { file_put_contents('/tmp/checkPicture.log', "$imageUri:true\n", FILE_APPEND | LOCK_EX); echo "true"; exit(0); } file_put_contents('/tmp/checkPicture.log', "$imageUri:false\n", FILE_APPEND | LOCK_EX); echo "false"; exit(0); ?>